package net.sunofbeach.blog.controller.portal;

import net.sunofbeach.blog.response.ResponseResult;
import net.sunofbeach.blog.services.IHsHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author masterGuo
 * @net www.lolxiaoguo.cn
 * @date 2022/6/8 19:24
 */

@RestController
@RequestMapping("/portal/house")
public class HousePortalApi {
    @Autowired
    private IHsHouseService iHsHouseService;
    //1.post核酸house信息

    //2.计算核酸小屋最近的5个
    @GetMapping("/list/{lat}/{lon}")
    public ResponseResult list5House(@PathVariable("lat") Double lat, @PathVariable("lon") Double lon) {
        return iHsHouseService.list5House(lat,lon);
    }

}
